<?php

namespace app\common\model;

use think\Db;
use think\Model;

class ProductCode extends Model
{
    public static function updateStatus($shop_id, $code, $product_id, $status) {
        return self::where('shop_id', $shop_id)->where('code', $code)->where('product_id', $product_id)
            ->update(['status' => $status]);
    }
}
